%% 图像平均
img_orig4 = rgb2gray(imread('lena.jpg'));
img_noise1 = imnoise(img_orig4, 'gaussian', 0, 0.01);
img_noise2 = imnoise(img_orig4, 'gaussian', 0, 0.01);
img_noise3 = imnoise(img_orig4, 'gaussian', 0, 0.01);
img_noise4 = imnoise(img_orig4, 'gaussian', 0, 0.01);

img_average = imlincomb(0.25,img_noise1, 0.25,img_noise2, 0.25,img_noise3, 0.25,img_noise4);
figure();
subplot(1, 2, 1);
imshow(img_noise1);
title('noise');
subplot(1, 2, 2);
imshow(img_average);
title('average');
